﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
	xmlns:System="clr-namespace:System;assembly=mscorlib"
	mc:Ignorable="d"
	x:Class="TheGameClient.SecSysTbpaControl"
	d:DesignWidth="553" d:DesignHeight="458">
	<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="Default_states" ei:ExtendedVisualStateManager.UseFluidLayout="True">
				<VisualStateGroup.Transitions>
					<VisualTransition GeneratedDuration="0:0:0.4">
						<VisualTransition.GeneratedEasingFunction>
							<CubicEase EasingMode="EaseOut"/>
						</VisualTransition.GeneratedEasingFunction>
					</VisualTransition>
				</VisualStateGroup.Transitions>
				<VisualState x:Name="Default"/>
				<VisualState x:Name="Accessed">
					<Storyboard>
						<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border" d:IsOptimized="True"/>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="border">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<System:Boolean>True</System:Boolean>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
				<VisualState x:Name="AccountCreation">
					<Storyboard>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="btnOK">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<Visibility>Collapsed</Visibility>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<VisualStateManager.CustomVisualStateManager>
			<ei:ExtendedVisualStateManager/>
		</VisualStateManager.CustomVisualStateManager>
		<Border HorizontalAlignment="Center" VerticalAlignment="Center" BorderThickness="2" CornerRadius="10" Background="{StaticResource DefaultWindowColor}" BorderBrush="{StaticResource DefaultWindowBorder}" Effect="{StaticResource DefaultShadowLarge}">
			<StackPanel Margin="10" Orientation="Horizontal">
				<Grid Margin="0,0,20,0">
					<Border BorderThickness="1" Width="104" HorizontalAlignment="Center" CornerRadius="7" BorderBrush="#3FFFFFFF" Height="104" VerticalAlignment="Center" UseLayoutRounding="False"/>
					<Border BorderThickness="1" Width="102" HorizontalAlignment="Center" CornerRadius="6" BorderBrush="#3F000000" Height="102" VerticalAlignment="Center" UseLayoutRounding="False"/>
					<Border BorderThickness="1" Width="100" HorizontalAlignment="Center" CornerRadius="5" BorderBrush="#3FFFFFFF" Margin="0" Height="100" VerticalAlignment="Center" UseLayoutRounding="False">
						<Border.Background>
							<RadialGradientBrush RadiusY="0.812" GradientOrigin="0.5,0.945">
								<GradientStop Color="{StaticResource TheGameDarkRed}" Offset="1"/>
								<GradientStop Color="{StaticResource TheGameBrightRed}"/>
							</RadialGradientBrush>

						</Border.Background>
					</Border>
					<Image Source="tbpa.png" HorizontalAlignment="Center" Margin="5" VerticalAlignment="Center" Height="90">
						<Image.Effect>
							<DropShadowEffect Direction="275" ShadowDepth="4" Opacity="0.995" BlurRadius="4"/>
						</Image.Effect>
					</Image>
					<Border BorderBrush="{StaticResource DefaultWindowBorder}" BorderThickness="0" Width="100" HorizontalAlignment="Center" Background="{StaticResource DefaultGlassGradient}" CornerRadius="5" Opacity="0.75" Height="100" VerticalAlignment="Center"/>
				</Grid>
				<StackPanel Margin="0,0,0,5" VerticalAlignment="Center">
					<TextBlock Text="Timed brain pattern analysis data:" TextWrapping="Wrap" VerticalAlignment="Center" Margin="0,0,5,5" Foreground="Black" HorizontalAlignment="Left" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
					<StackPanel Orientation="Horizontal" Margin="0,0,0,5">
						<TextBox TextWrapping="Wrap" VerticalAlignment="Center" x:Name="txtFileName" IsReadOnly="True" Width="200" Margin="0,0,5,0" Text="{Binding FileName}" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
						<Button x:Name="btnShowBrowseDialog" Content="Browse..." Width="75" HorizontalAlignment="Right" Click="BrowseButtonClick" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
					</StackPanel>
				</StackPanel>
				<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
					<Button x:Name="btnOK" Content="Authenticate" HorizontalAlignment="Left" Width="100" Click="BtnOkClick" VerticalAlignment="Center" Height="100" Margin="20,0,0,0" FontFamily="/TheGameClient;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
				</StackPanel>
			</StackPanel>
		</Border>
		<Border x:Name="border" CornerRadius="10" BorderBrush="{StaticResource DefaultWindowBorder}" Opacity="0" IsHitTestVisible="False" d:IsHidden="True">
			<Border.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#7F4092FF" Offset="0.492"/>
					<GradientStop Color="#3F003479" Offset="0"/>
					<GradientStop Color="#3F003479" Offset="1"/>
				</LinearGradientBrush>
			</Border.Background>
			<TextBlock TextWrapping="Wrap" Text="ACCESS GRANTED" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White" FontSize="32" FontWeight="Bold" FontFamily="Consolas">
				<TextBlock.Effect>
					<DropShadowEffect Color="White" ShadowDepth="0" BlurRadius="10"/>
				</TextBlock.Effect>
			</TextBlock>
		</Border>
	</Grid>
</UserControl>